package top.zhan.state;

/**
 * @author Zhan
 * @date 2022/10/10 15:09
 */
public class OrderContext {

    private State state;

    public OrderContext(){}
    public OrderContext(State state){
        this.state = state;
    }

    public void setState(State state){
        this.state = state;
        System.out.println("订单状态变更！！");
        this.state.handle();
    }
}
